import { useEffect, useState } from "react";
const Home = () =>{
  const [name,setName] = useState('')
  useEffect(() => {
    if(JSON.parse(localStorage.getItem('user_info')).isAdmin){
      setName('管理端')
    }else{
      setName('用户端')
    }
  },[])
  return (
    <>
    <div>主页{name}</div>
    </>
  )
}

export default Home